package com.yangtianfeng58.pojo;

import java.time.LocalDateTime;
import java.util.List;

public class Polls {
    private Integer id;
    private String question;
    private LocalDateTime creationDate;
    private Integer createdBy;

    private List<Options> optionsList;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getQuestion() {
        return question;
    }

    public void setQuestion(String question) {
        this.question = question;
    }

    public LocalDateTime getCreationDate() {
        return creationDate;
    }

    public void setCreationDate(LocalDateTime creationDate) {
        this.creationDate = creationDate;
    }

    public Integer getCreatedBy() {
        return createdBy;
    }

    public void setCreatedBy(Integer createdBy) {
        this.createdBy = createdBy;
    }

    public List<Options> getOptionsList() {
        return optionsList;
    }

    public void setOptionsList(List<Options> optionsList) {
        this.optionsList = optionsList;
    }

    @Override
    public String toString() {
        return "Polls{" +
                "id=" + id +
                ", question='" + question + '\'' +
                ", creationDate=" + creationDate +
                ", createdBy=" + createdBy +
                ", optionsList=" + optionsList +
                '}';
    }
}
